package com.kxxnzstdsw.utils

import cn.hutool.crypto.digest.BCrypt


fun String.encryptPw(): String {
  return BCrypt.hashpw(this, BCrypt.gensalt())
}

fun String.checkPw(encryptPasswd: String): Boolean {
  return BCrypt.checkpw(encryptPasswd, this)
}
